From b2056438d46ce27a3ccd9ba614de7832d6a55cc9 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Tue, 12 Feb 2013 01:28:38 +0000 Subject: [PATCH] Correct over-aggressive xstrdup removal. --- gpsbabel/gbfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gbfile.cc b/gpsbabel/gbfile.cc index a021320b5..d0abd48cd 100644 --- a/gpsbabel/gbfile.cc +++ b/gpsbabel/gbfile.cc @@ -1256,7 +1256,7 @@ gbfputpstr(const char* s, gbfile* file) int gbfputpstr(const QString s, gbfile* file) { - const char *t = s.toUtf8().data(); + const char *t = xstrdup(s.toUtf8().data()); int r = gbfputpstr(t, file); xfree(t); return r; -- 2.30.2